<!DOCTYPE html>
<html>
<head>
  <title><%= current_store.name ||= "Loading..."%></title>
  <%= action_cable_meta_tag %>
  <%= cache "js:css:2017-02-22:19:36" do%>
    <%= stylesheet_link_tag    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>
  <% end %>
  <%= csrf_meta_tags %>

  <%= link_stylesheet_by_namespace%>
  <%= include_javascript_by_namespace %>
  <%= yield :pre_assets %>
</head>
<body>
<!-- devise destory -->
<!-- <li><%= link_to '登出', destroy_user_session_path, method: :delete %></li> -->

<div class="main">
  <%= render "/layouts/header"%>
  <div class="left_screen">
    <%= render "/layouts/sidebar" %>
  </div>
  <div class="right_screen">
      <%= yield %>
  </div>

  <!-- 添加好友提醒 -->
  <div class="friend-reminder" id="js-display-friend-notification">
    <div class="friend-reminder-frame">
    <i class="fa fa-user-plus" id="reminder-colose"></i>
      <a href="/ruiqu/store_friends/apply_list">您有新的好友验证！</a>
    </div>
  </div>


  <div class="friend-reminder" id="js-display-order-notification">
    <div class="friend-reminder-frame">
    <i class="fa fa-user-plus" id="reminder-colose"></i>
      <a href="#">您有新的订单！</a>
    </div>
  </div>

</div>

<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" id="modal_closeBtn" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="modalLabel">提 醒</h4>
      </div>
      <div class="modal-body"></div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" id="modal_okBtn" data-dismiss="modal">确 定</button>
        <button type="button" class="btn btn-primary" id="modal_cancelBtn" data-dismiss="modal">取 消</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<script>
  $.sidebarMenu($('.sidebar-menu'))
</script>
</body>
<%= yield :thiny_assets %>
</html>
